﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace TSPro.Data
{
    //设备参数，在测量时保存
    public class DeviceParam
    {
        //高压
        public int HighVoltage { get; set; }

        //增益
        public int Gain { get; set; }

        //载气设置值
        public int CarrierGas { get; set; }

        //进口氧
        public int ImportedOxygen { get; set; }

        //裂解氧
        public int PyrolysisOxygen { get; set; }

        //氮臭氧
        public int NitrogenOzone { get; set; }
    }

    public class CollectParam
    {
        public int CollectStart { get; set; }

        public int CollectEnd { get; set; }

        public int IntegraStart { get; set; }

        public int IntegraEnd { get; set; }
    }

    public class FitParam
    {
        public int FitType { get; set; }

        public double FitA { get; set; }

        public double FitB { get; set; }

        public double FitC { get; set; }

        //相关系数
        public double CorrelationCoefficient { get; set; }

        //最大浓度
        public double MaxConcentration { get; set; }
    }

    //单个元素
    public class ElementParam
    {
        public FitParam FitParam { get; set; }

        public CollectParam CollectParm { get; set; }

        public DeviceParam DeviceParam { get; set; }

        //校正系数
        public double CorrectionFactor { get; set; }

    }
}
